/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session_03_states;

import java.util.logging.Level;
import java.util.logging.Logger;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
import session_03_states.estados.Juego;

/**
 *
 * @author Fede
 */
public class Principal extends StateBasedGame{
    private AppGameContainer contenedor;
    public Principal(String name) throws SlickException {
        super(name);
        contenedor = new AppGameContainer(this);
        //contenedor.setDisplayMode(1366,768,true);
        contenedor.setDisplayMode(800,600,false);
        contenedor.setShowFPS(false);
        contenedor.start();
    }

    /**
     * Inicializa la lista de los estados del juego!
     * @param gc
     * @throws SlickException 
     */
    @Override
    public void initStatesList(GameContainer gc) throws SlickException {
        this.addState(new Juego());
    }
    
    
    
}
